package cn.edu.ctbu.datajpa01.service.impl;


import cn.edu.ctbu.datajpa01.domain.Administrator;
import cn.edu.ctbu.datajpa01.domain.repository.AdministratorRepository;
import cn.edu.ctbu.datajpa01.service.AdministratorService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdministratorImpIService implements AdministratorService {

    @Autowired
    private AdministratorRepository administratorRepository;

    public List<Administrator> findByNoAndPassword(String no, String password) {

        return administratorRepository.findByNoAndPassword(no,password);

    }


}
